package com.fz.us.oa.web.shiro.realm;

/**
 * 二维码登录的 token
 */
public class StatelessQrcodeLoginToken extends StatelessBaseToken {

    private String uid;
    private String code;

    public StatelessQrcodeLoginToken(String uid, String code) {
        this.uid = uid;
        this.code = code;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public Object getPrincipal() {
       return uid;
    }

    @Override
    public Object getCredentials() {
        return code;
    }

}
